package com.xuecheng.system;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@MapperScan("com.xuecheng.*.mappers")  //扫描mapper
@ComponentScan(
        basePackages = {
                "com.xuecheng.system",
                "com.xuecheng.web"
        }
)
@Slf4j
public class SystemApplication {
    public static void main(String[] args) {
        SpringApplication.run(SystemApplication.class, args);
        log.warn("项目启动成功");
    }
}
